package com.umpay.dto.merBusi.req;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;

/**
 * 
 * @ClassName: CommonBusiReq  
 * @Description: 业务层公共字段基类  
 * @author liuhaidong  
 * @date Jan 17, 2018
 */
public class CommonBusiReq  implements Verifiable  {
	
	/**
	 * 通信流水
	 */
	@NotEmpty(message = "rpid不能为空")
	@Pattern(message="rpid格式不正确")
	public String rpid;
	/**
	* 版本号
	*/
	@NotEmpty(message = "版本号不能为空")
	@Pattern(message="版本号格式不正确")
	public String version;
	/**
	 * 请求日期
	 */
	@NotEmpty(message = "请求日期不能为空")
	@Pattern(message="请求日期格式不正确")
	public String reqDate;
	/**
	 * 请求时间
	 */
	@NotEmpty(message = "请求时间不能为空")
	@Pattern(message="请求时间格式不正确")
	public String reqTime;
	
	public String accessName;
	
	public String accessType;
	
	protected String depBankMerId;
	
	public String getAccessName() {
		return accessName;
	}
	public void setAccessName(String accessName) {
		this.accessName = accessName;
	}
	public String getAccessType() {
		return accessType;
	}
	public void setAccessType(String accessType) {
		this.accessType = accessType;
	}
	public String getRpid() {
		return rpid;
	}
	public void setRpid(String rpid) {
		this.rpid = rpid;
	}
	public String getReqDate() {
		return reqDate;
	}
	public void setReqDate(String reqDate) {
		this.reqDate = reqDate;
	}
	public String getReqTime() {
		return reqTime;
	}
	public void setReqTime(String reqTime) {
		this.reqTime = reqTime;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getDepBankMerId() {
		return depBankMerId;
	}
	public void setDepBankMerId(String depBankMerId) {
		this.depBankMerId = depBankMerId;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("CommonBusiReq [rpid=");
		builder.append(rpid);
		builder.append(", version=");
		builder.append(version);
		builder.append(", reqDate=");
		builder.append(reqDate);
		builder.append(", reqTime=");
		builder.append(reqTime);
		builder.append(", accessName=");
		builder.append(accessName);
		builder.append(", accessType=");
		builder.append(accessType);
		builder.append(", depBankMerId=");
		builder.append(depBankMerId);
		builder.append("]");
		return builder.toString();
	}
}
